<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:t="http://myfaces.apache.org/tomahawk" 
      xmlns:ui="http://java.sun.com/jsf/facelets" >
    <h:head>
        <title>Bem Vindo</title>
    </h:head>
    <h:body>
        <h:form id="form" prependId="false" >
            <p:message for="btnEntrar" />
            <h:panelGrid columns="4" >
                <h:outputText value="Usuário: " />
                <h:outputText value="*" style="color: red" />
                <p:inputText id="j_username" required="true" requiredMessage="Campo obrigatório" />
                <p:message for="j_username" />
                <h:outputText value="Senha: " />
                <h:outputText value="*" style="color: red" />
                <p:password id="j_password" feedback="false" minLength="6" required="true" requiredMessage="Campo obrigatório" />
                <p:message for="j_password" />
            </h:panelGrid>

            <h:panelGrid columns="2" >
                <p:commandButton id="btnEntrar" action="#{loginBean.login}" value="Entrar" ajax="false" />
                <p:commandButton type="reset" action="#" value="Limpar" immediate="true" />
            </h:panelGrid>
            <h:outputText value="* Campos obrigatórios" />
        </h:form>
    </h:body>
</html>
